package com.zykj.feign.controller;

import com.netflix.discovery.converters.Auto;
import com.zykj.feign.service.FeignServiceDemo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhoulj(周利军) [1217102780@qq.com]
 * @Title: FeignController
 * @Project: ${MODEL_NAME}
 * @Module ID:   <(模块)类编号，可以引用系统设计中的类编号>
 * @Comments: <对此类的描述，可以引用系统设计中的描述>
 * @JDK version used:      <JDK1.8> 38
 * @since 2018/12/22-13:38
 */
@RestController
@RequestMapping("feigncontroller")
public class FeignController {
    Logger log = LoggerFactory.getLogger(FeignController.class);
    @Autowired
    FeignServiceDemo feignServiceDemo;

    @RequestMapping
    public String getStr(String name) {
        log.debug("【Feign Controller 方法进入...】");
        return feignServiceDemo.callFeignService(name);
    }
}
